package com.zyong.design.pattern.observer.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Subject
 * @author: zyong
 * @create: 2024-05-14 00:03
 */
public interface Subject {
    /**
     * 注册观察者
     * @param observer
     */
    void registerObserver(Observer observer);

    /**
     * 注销观察者
     * @param observer
     */
    void unregisterObserver(Observer observer);

    /**
     * 通知观察者
     */
    void notifyObservers();
}
